/*
 * @author: huangww
 * @Date: 2021-02-25 10:32:54
 * @LastEditTime: 2021-02-25 15:46:49
 * @FilePath: \fmgr\src\core\data\PlayerData.ts
 */
namespace core {
  export class PlayerData extends DataBase {
    constructor() {
      super(DATAMODULE.PLAYER);
    }

    check(msg: Msg) {
      switch (msg.action) {
        case cmd.PLAYER.TEST:
          this.getTest();
          break;
      }
    }

    updateData(msg: Msg) {
      this.dispatch(msg.action, msg.data);
    }

    getTest() {
      this.dispatch(cmd.PLAYER.TEST, "getTest");
    }
  }
}